<?php session_start(); ?>
<?php include('header.php') ?>
<?php include('nav/nav.php') ?>
<div class="row">
  <form class="form-horizontal" method="POST" action="evalLogin.php">
    <div class="modal">
      <div class="modal-header">
        <h3>Please login</h3>
        <?php 
        $_SESSION['id'] = '';
        $_SESSION['username'] = '';
        $_SESSION['password'] = '';
        ?>
        <?php if($_SESSION['response'] != '')
          {
            echo '<div class="alert alert-error">';
            echo '<button type="button" class="close" data-dismiss="alert">&times;</button>';
            echo $_SESSION['response'];
            echo '</div>';
            $_SESSION['response'] = '';
          }
          ?>
      </div>
      <div class="modal-body">
        <div class="control-group">
          <label class="control-label" for="inputUsername">Username:</label>
          <div class="controls">
            <input type="text" name="inputUsername" autocomplete="OFF" placeholder="Username" 
                    class="search-query input-medium" />
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="inputPassword">Password</label>
          <div class="controls">
            <input type="password" name="inputPassword" placeholder="Password" 
                    class="search-query input-medium"/>
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="inputPassword">sign in as</label>
          <div class="controls">
            <select name="selectPermission">
              <option selected="selected" value="1">User</option>
              <option value="2">Admin</option>
              <option value="3">Super admin</option>
            </select>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="submit" class="btn btn-primary">Sign in</button>
      </div>
    </div>
  </form>
</div>